﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace FinalWork
{
    
    public partial class Form1 : Form
    {
    
        public Form1()
        {
            InitializeComponent();
           
            
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            FormLogin frm = new FormLogin();
            var result = frm.ShowDialog();
            if (result != DialogResult.OK)
            {
                //非正常登录 
                this.Close();
            }

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            
        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }

        private void textBox1_Click(object sender, EventArgs e)
        {
            Form2 frm = new Form2();
            frm.ShowDialog();
          
        }

        private void textBox1_MouseEnter(object sender, EventArgs e)
        {
             textBox1.BackColor = Color.Yellow;
        }

        private void textBox1_MouseLeave(object sender, EventArgs e)
        {
            textBox1.BackColor= Color.White;
        }
    }
}
